<div class="fui-page order-create-page fui-page-current" >
	<div class="fui-content">
		<div class="fui-searchbar bar" style="z-index: 0;">
			<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:#fff">
					<div style="position: relative;left:0;top:0;">
						<div class="search-input" ng-click="pagedata.searchbar =1">
							<i class="icon icon-search" style="color: {iconcolor};"></i>
							<input type="search" placeholder="输入搜索" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.56rem;background:#f9f9f9" />
						</div>
					</div>
			</div>
		</div>
		<div class="fui-cell-group fui-comment-group">	
				<div ng-repeat="m in pagedata.list" class="fui-cell fui-cell-click noborder">
					<div class="fui-cell-icon" style="width:46px;margin-top:-10px"><img class="img-circle" ng-src="{{m.quaninfo.logo || '../core/resource/images/nopic.jpg'}}" style="width:46px;height:46px" /></div>
					<div class="fui-cell-text desc">
						<div class="fui-cell noborder" style="padding:0.25rem">
							<div ng-if="m.quanid>0" class="fui-cell-text" ng-click="access_json('/index//quanid='+m.quanid)" style="color:#f60">{{m.quaninfo.title || '小周圈'}}</div>
							<div ng-if="m.snsid>0" class="fui-cell-text" ng-click="access_json('/index//snsid='+m.snsid)" style="color:#f60">{{m.quaninfo.title || '小周圈'}}</div>
							<div class="fui-cell-text r"><span class="jylabel jylabel-red">已关注</span></div>
							<div class="fui-cell-text r" ng-if="m.isfollow!=1"><span class="jylabel jylabel-red active" href="javascript;" ng-click="pagedata.setfollow(m.quanid,m.snsid);m.isfollow=1">关注</span></div>
						</div>
						<div class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="color:#000">
								{{m.quaninfo.desc || '小伙伴很懒，没有描述！'}}
							</div>
						</div>
						<div class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="font-size:0.5rem">
								地址：{{m.quaninfo.pcd.province}} {{m.quaninfo.pcd.city}} {{m.quaninfo.pcd.district}} 
							</div>
						</div>
					</div>
				</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
//获取关注
scope.pagedata.setfollow=function(mid,snsid){
	var params={
		data:{'mid':mid,'snsid':snsid},
		op:'follow',
		callback:function(res){
			console.log(res);
			scope.message('成功关注！');
			scope.$evalAsync();
		}
	};
	scope.post_json(params);
}
</script>